﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NGU
{
    public partial class DatTour : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["TripId"] != null)
            {
                if (Request["Step"] != null)
                {
                    string step = Request["Step"].ToString();
                    switch (step)
                    {
                        case "1":
                            this.page_content.Controls.Clear();
                            WUC.dat_tour_dang_ky step1 = LoadControl("~/WUC/dat_tour_dang_ky.ascx") as WUC.dat_tour_dang_ky;
                            this.page_content.Controls.Add(step1);
                            Session.Add((Session.Count + 1).ToString(), step1);
                            break;
                        case "2":
                            this.page_content.Controls.Clear();
                            WUC.dat_tour_hinh_thuc_thanh_toan step2 = LoadControl("~/WUC/dat_tour_hinh_thuc_thanh_toan.ascx") as WUC.dat_tour_hinh_thuc_thanh_toan;
                            this.page_content.Controls.Add(step2);
                            Session.Add((Session.Count + 1).ToString(), step2);
                            break;
                        case "3":
                            this.page_content.Controls.Clear();
                            WUC.dat_tour_xac_nhan_tt_dang_ky step3 = LoadControl("~/WUC/dat_tour_xac_nhan_tt_dang_ky.ascx") as WUC.dat_tour_xac_nhan_tt_dang_ky;
                            this.page_content.Controls.Add(step3);
                            Session.Add((Session.Count + 1).ToString(), step3);
                            break;
                        case "4":
                            this.page_content.Controls.Clear();
                            WUC.dat_tour_xac_nhan_agent step4 = LoadControl("~/WUC/dat_tour_xac_nhan_agent.ascx") as WUC.dat_tour_xac_nhan_agent;
                            this.page_content.Controls.Add(step4);
                            Session.Add((Session.Count + 1).ToString(), step4);
                            break;
                        case "5":
                            this.page_content.Controls.Clear();
                            WUC.dat_tour_thanh_toan step5 = LoadControl("~/WUC/dat_tour_thanh_toan.ascx") as WUC.dat_tour_thanh_toan;
                            this.page_content.Controls.Add(step5);
                            Session.Add((Session.Count + 1).ToString(), step5);
                            break;
                        default:
                            this.page_content.Controls.Clear();
                            WUC.dat_tour_dang_ky tb = LoadControl("~/WUC/dat_tour_dang_ky.ascx") as WUC.dat_tour_dang_ky;
                            this.page_content.Controls.Add(tb);
                            Session.Add((Session.Count + 1).ToString(), tb);
                            break;
                    }
                }
                else
                {
                    this.page_content.Controls.Clear();
                    WUC.dat_tour_dang_ky tb = LoadControl("~/WUC/dat_tour_dang_ky.ascx") as WUC.dat_tour_dang_ky;
                    this.page_content.Controls.Add(tb);
                    Session.Add((Session.Count + 1).ToString(), tb);
                }
            }
            else
            {
                this.page_content.Controls.Clear();
                WUC.dat_tour_error_page tb = LoadControl("~/WUC/dat_tour_error_page.ascx") as WUC.dat_tour_error_page;
                this.page_content.Controls.Add(tb);
                Session.Add((Session.Count + 1).ToString(), tb);
            }
        }
    }
}